#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include <string.h>

int main()
{
	char arr[10000] = { 0 };
	gets(arr);
	char* left = arr;
	char* right = arr + strlen(arr) - 1;

	while (left < right)
	{
		char tmp = * left;
		*left = *right;
		*right = tmp;
		left++;
		right--;
	}

	printf("%s", arr);
	return 0;
}